﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>AvatarTest</title>
    <script type="text/javascript">
        var avatar;
        window.onload = function () {
            avatar = document.getElementById('avatar');
            //var s = ['ddd','aaa'];
            //avatar.setJSFuncName([jsHandler, tipHandle]);
        };
        function tipHandle(msg) {
            alert(msg);
        }
        function jsHandler(result) {
            console.log(result);
        }
      
    </script>
    <body>
       
            <div style="width: 630px; height: 360px; padding: 10px; display: block; background: #EEE;
                border: 1px solid #ddd;">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                    name="bighead" width="630px" height="360px" id="avatar">
                    <param name="movie" value="/avatarMaker.swf" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <embed id="avatar" width="630px" height="360px" pluginspage="http://www.macromedia.com/go/getflashplayer"
                        type="application/x-shockwave-flash" src="/avatarMaker.swf" /></object></div>
        <div>
            <a href="javascript:void(0);" onclick="avatar.upload('/home/avatartest');">上传</a></div>
    </body>
</html>
